package com.xiguthings.waka.web.controller.wechat.wx.tmpltMsg;

import com.xiguthings.waka.publicUtils.PropertiesUtil;

import java.io.UnsupportedEncodingException;

public class MsgPro {
	/**
	 * 欢迎信息
	 */
	public static String hy;
	/**
	 * 欢迎图片
	 */
	public static String hyImage_media_id;
	/**
	 * 获奖信息
	 */
	public static String drawSucceed;
	/**
	 * 奖品图片
	 */
	public static String myLuckyMsg;
	static {
		String hyISO = PropertiesUtil.getInstance().getPro("config/msg.properties", "hy");
		String drawSucceedISO = PropertiesUtil.getInstance().getPro("config/msg.properties", "drawSucceed");
		String myLuckyMsgISO = PropertiesUtil.getInstance().getPro("config/msg.properties", "myLuckyMsg");
		String hyImage_media_idISO = PropertiesUtil.getInstance().getPro("config/msg.properties", "hyImage_media_id");
		try {
			hy = new String(hyISO.getBytes("ISO-8859-1"), "UTF-8");
			drawSucceed = new String(drawSucceedISO.getBytes("ISO-8859-1"), "UTF-8");
			myLuckyMsg = new String(myLuckyMsgISO.getBytes("ISO-8859-1"), "UTF-8");
			hyImage_media_id = new String(hyImage_media_idISO.getBytes("ISO-8859-1"), "UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}

}
